<ftp_renamefile> : Rename Remote File (FTP)
Renames file on a remote FTP server.
Syntax:
<ftp_renamefile>("RemoteOldlFile", "RemoteNewFile", "UserName", "Password")
RenameOldFile
Full path to the original remote file (e.g., ftp://softwareutilities.com/original.txt).
RemoteNewFile
Full path to the remote new file (e.g., ftp://softwareutilities.com/renamed.txt).
UserName
User login name. If empty the "anonymous" is considered.
Password
User name login password.
Example:
<#> This macro uploads file to an FTP server
<#>
<cmds>
<form_item>("fm1","Remote file - old
name:","EDIT","","vRemoteFileOld")
<form_item>("fm1","Remote file - new name:","EDIT","","vRemoteFileNew")
<form_item>("fm1","User:","EDIT","","vUser")
<form_item>("fm1","Password:","EDIT","","vPassword")
<form_show>("fm1","File Rename","shell32.dll",1)
<if_str>("_vCanceled==1")<exitmacro><endif>
<ftp_renamefile>("vRemoteFileOld","vRemoteFileNew","vUser","vPassword")